package com.antu.first.bean;

/**
 * Created by Administrator on 2018/3/3.
 */
public class Room {

    private int rId;//房间Id

    private String rName;//房间名称

    private RoomType rType;//房间类型

    private String rDesc;//房间描述

    private boolean rAllowDiscount;//是否支持使用优惠券

    private int rRepertory;//房间库存量

    private double rOriginalPrice;//原价

    private double rPresentPrice;//现价

    private Hotel hotel;//所属酒店

    public Room() {
    }

    public Room(int rId, String rName, RoomType rType, String rDesc, boolean rAllowDiscount, int rRepertory, double rOriginalPrice, double rPresentPrice, Hotel hotel) {

        this.rId = rId;
        this.rName = rName;
        this.rType = rType;
        this.rDesc = rDesc;
        this.rAllowDiscount = rAllowDiscount;
        this.rRepertory = rRepertory;
        this.rOriginalPrice = rOriginalPrice;
        this.rPresentPrice = rPresentPrice;
        this.hotel = hotel;
    }

    public int getrId() {

        return rId;
    }

    public void setrId(int rId) {
        this.rId = rId;
    }

    public String getrName() {
        return rName;
    }

    public void setrName(String rName) {
        this.rName = rName;
    }

    public RoomType getrType() {
        return rType;
    }

    public void setrType(RoomType rType) {
        this.rType = rType;
    }

    public String getrDesc() {
        return rDesc;
    }

    public void setrDesc(String rDesc) {
        this.rDesc = rDesc;
    }

    public boolean isrAllowDiscount() {
        return rAllowDiscount;
    }

    public void setrAllowDiscount(boolean rAllowDiscount) {
        this.rAllowDiscount = rAllowDiscount;
    }

    public int getrRepertory() {
        return rRepertory;
    }

    public void setrRepertory(int rRepertory) {
        this.rRepertory = rRepertory;
    }

    public double getrOriginalPrice() {
        return rOriginalPrice;
    }

    public void setrOriginalPrice(double rOriginalPrice) {
        this.rOriginalPrice = rOriginalPrice;
    }

    public double getrPresentPrice() {
        return rPresentPrice;
    }

    public void setrPresentPrice(double rPresentPrice) {
        this.rPresentPrice = rPresentPrice;
    }

    public Hotel getHotel() {
        return hotel;
    }

    public void setHotel(Hotel hotel) {
        this.hotel = hotel;
    }

    @Override
    public String toString() {
        return "Room{" +
                "rId=" + rId +
                ", rName='" + rName + '\'' +
                ", rType=" + rType +
                ", rDesc='" + rDesc + '\'' +
                ", rAllowDiscount=" + rAllowDiscount +
                ", rRepertory=" + rRepertory +
                ", rOriginalPrice=" + rOriginalPrice +
                ", rPresentPrice=" + rPresentPrice +
                ", hotel=" + hotel +
                '}';
    }
}
